<%@ page import="com.webamc.common.enums.Fields" %>
<%@ page import="com.webamc.common.enums.Params" %>
<script type="text/javascript" src="../calendar.js" ></script>
<script type="text/javascript">
    function calEndDate(obj){
      var startDate = obj.value;
      var wObj = document.getElementsByName("<%=Fields.WARRANTY%>")[0];
      var extwObj = document.getElementsByName("<%=Fields.EXTWARRANTY%>")[0];
      var wEndDateObj = document.getElementsByName("<%=Fields.WARRANTYENDDATE%>")[0];
    }
</script>
<jsp:include page="popup.jsp"/>

<table class="browse-table" border="1">
    <col width="25%">
    <col width="75%">

    <jsp:include page="order-blankform.jsp"/>

    <tr>
        <td>Invoice Number</td>
        <td><input name="<%=Fields.INVOICENUMBER%>"/>   </td>
    </tr>

    <tr>
        <td>Invoice date</td>
        <td><input name="<%=Fields.INVOICEDATE%>"  onclick="initCal(this)"/></td>
    </tr>

    <tr>
        <td>Installation date</td>
        <td><input name="<%=Fields.INSTALLATIONDATE%>"  onclick="initCal(this)" onchange="calEndDate(this)"/></td>
    </tr>
    <tr>
        <td>Warranty</td>
        <td><input name="<%=Fields.WARRANTY%>" readonly="readonly"/></td>
    </tr>
    <tr>
        <td>Ext Warranty</td>
        <td><input name="<%=Fields.EXTWARRANTY%>" value="0"/></td>
    </tr>
    <tr>
        <td>Warranty End date</td>
        <td><input name="<%=Fields.WARRANTYENDDATE%>" readonly="readonly"/></td>
    </tr>
    <tr>
        <td>Assignee Id</td>
        <td>
            <input readonly="readonly" name="<%=Fields.ASSIGNEEID%>"
                   onfocus="showMe('user.html?action=browse',this.name)"/>
            <a href="javascript:showMe('user.html?action=browse','<%=Fields.ASSIGNEEID%>')"><%=Params.LIST%>
            </a>
        </td>
    </tr>
    <tr>
        <td>Supervisor Id</td>
        <td>
            <input readonly="readonly" name="<%=Fields.SUPERVISORID%>"
                   onfocus="showMe('user.html?action=browse',this.name)"/>
            <a href="javascript:showMe('user.html?action=browse','<%=Fields.SUPERVISORID%>')"><%=Params.LIST%>
            </a>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <button type="submit">OK</button>
            <a href="productorder.html?action=browse">
                <button type="button">Cancel</button>
            </a>
        </td>
    </tr>
</table>